package com.zerdoor.service.impl;

import com.zerdoor.dao.MinorCodeDao;
import com.zerdoor.service.MinorCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by xiaoji on 2015/1/29.
 */
@Service
public class MinorCodeServiceImpl implements MinorCodeService {
    @Autowired
    private MinorCodeDao minorCodeDao;

    /**
     * 码表列表
     *
     * @param map
     * @return
     */
    @Override
    public List<Map<String, Object>> selectMinorCodeByMajorId(Map<String, Object> map) {
        return minorCodeDao.selectMinorCodeByMajorId(map);
    }

    /**
     * 添加码表
     *
     * @param map
     * @throws Exception
     */
    @Override
    public void addMinorCode(Map<String, Object> map) throws Exception {
        minorCodeDao.addMinorCode(map);
    }

    /**
     * 编辑码表
     *
     * @param map
     * @throws Exception
     */
    @Override
    public void updateMinorCode(Map<String, Object> map) throws Exception {
        minorCodeDao.updateMinorCode(map);
    }

    /**
     * 删除码表
     *
     * @param map
     * @throws Exception
     */
    @Override
    public void deleteMinorCode(Map<String, Object> map) throws Exception {
        minorCodeDao.deleteMinorCode(map);
    }
}
